const thunkay = ({getState, dispatch}) => next => action => {
    if(Array.isArray(action)){
        // 如果满足条件调用dispatch
        return action.forEach(v=>dispatch(v))
    }
    // 不满足就下一个middleware
    return next(action);
};

export default thunkay;